package com.acegear.horizon.domain.models.vo;

import com.acegear.horizon.domain.models.constraint.FeedType;
import com.acegear.horizon.domain.models.constraint.UserPostType;
import com.acegear.horizon.domain.models.jpa.ContentPart;

import java.util.List;

/**
 * Created by wangsike on 2016/12/29.
 */
public class UserPostVO extends FeedVO {
    private Long postId;

    private Long clubId;

    private String clubName;

    private String nickname;

    private String avatar;

    private Long userId;

    private boolean isLike;

    private Integer likeCount;

    private Integer commentCount;

    private UserPostType postType;

    private List<ContentPart> contents;

    private Long createAt;

    private boolean deleted;

    public UserPostVO(Long postId, Long clubId, boolean isLike, String clubName, String nickname, String avatar, Long userId, Integer likeCount, Integer commentCount, UserPostType postType, List<ContentPart> contents, Long createAt, boolean deleted) {
        super();
        feedType = FeedType.USER_POST;
        this.postId = postId;
        this.clubId = clubId;
        this.isLike = isLike;
        this.clubName = clubName;
        this.nickname = nickname;
        this.avatar = avatar;
        this.userId = userId;
        this.likeCount = likeCount;
        this.commentCount = commentCount;
        this.postType = postType;
        this.contents = contents;
        this.createAt = createAt;
        this.deleted = deleted;
    }

    public boolean isLike() {
        return isLike;
    }

    public void setLike(boolean like) {
        isLike = like;
    }

    public Long getPostId() {
        return postId;
    }

    public void setPostId(Long postId) {
        this.postId = postId;
    }

    public Long getClubId() {
        return clubId;
    }

    public void setClubId(Long clubId) {
        this.clubId = clubId;
    }

    public String getClubName() {
        return clubName;
    }

    public void setClubName(String clubName) {
        this.clubName = clubName;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public UserPostType getPostType() {
        return postType;
    }

    public void setPostType(UserPostType postType) {
        this.postType = postType;
    }

    public List<ContentPart> getContents() {
        return contents;
    }

    public void setContents(List<ContentPart> contents) {
        this.contents = contents;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public Long getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Long createAt) {
        this.createAt = createAt;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }
}
